package com.fmyexample.mcsecurityboot.modular.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author Mr.fmy
 * @version 1.0.0
 * @ClassName User
 * @Description TODO
 * @createTime 2020/4/15 11:06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_user")
public class User {

    @TableId(type = IdType.UUID)
    private String userId;

    /**
     * 用户昵称
     */
    private String username;

    /**
     * 用户手机号
     */
    private String userPhone;

    /**
     * 用户密码
     */
    private String password;

    /**
     * 盐值
     */
    private String userSalt;

    public static final String USER_ID = "id";

    public static final String USERNAME = "username";

    public static final String USER_PHONE = "user_phone";

    public static final String PASSWORD = "password";

    public static final String USER_SALT = "user_salt";
}
